def test_create_token_success(self):
        token = api.create_dot_access_token(HttpRequest(), self.user, self.client)
        assert token['access_token']
        assert token['refresh_token']
        self.assertDictContainsSubset(
            {
                'token_type': 'Bearer',
                'expires_in': EXPECTED_DEFAULT_EXPIRES_IN,
                'scope': '',
            },
            token,
        )
        self._assert_stored_token(token['access_token'], self.user, self.client)