function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def __init__(self, input_text, extensions): self.input = input_text.splitlines() self.extensions = extensions
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def read_directories(self): pass
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _check_if_directory(self, line): pass
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _parse_directory(self, line): pass
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _parse_line(line, num_word): words = line.split(None, num_word - 1) if len(words) < num_word: return '' else: return words[num_word - 1]
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def read_directories(self): return self._read_directories(9)
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _parse_directory(self, line): return line[0:-1] + '/'
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def __init__(self, input_text, extensions): super(ParserDIR, self).__init__(input_text, extensions) self.firstDir = ''
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _check_if_directory(self, line): return line.startswith(" Katalog:")
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _set_first_dir(self): i = 0 for line in self.input: i += 1 if i > 5: self.firstDir = '' return elif self._check_if_directory(line): self.firstDir = self._parse_directory_zero(line) return self...
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def _parse_directory_zero(line): return (line[10:] + '/').replace("\\", "/")
APMD/PMD
[ 1, 4, 1, 1, 1448905660 ]
def create(kernel): result = Intangible() result.template = "object/draft_schematic/clothing/shared_clothing_ith_backpack_field_06.iff" result.attribute_template_id = -1 result.stfName("string_id_table","")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def create(kernel): result = Creature() result.template = "object/mobile/shared_dressed_imperial_officer_m_4.iff" result.attribute_template_id = 9 result.stfName("npc_name","human_base_male")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def __init__(self, dirName): """ Args: dirName (string): directory where to load the corpus """ self.lines = {} self.conversations = [] MOVIE_LINES_FIELDS = ["lineID","characterID","movieID","character","text"] MOVIE_CONVERSATIONS_FIELDS = ["character...
mertyildiran/Dragonfire
[ 1321, 207, 1321, 47, 1461108487 ]
def loadConversations(self, fileName, fields): """ Args: fileName (str): file to load field (set<str>): fields to extract Return: dict<dict<str>>: the extracted fields for each line """ conversations = [] with open(fileName, 'r', encod...
mertyildiran/Dragonfire
[ 1321, 207, 1321, 47, 1461108487 ]
def create(kernel): result = Tangible() result.template = "object/tangible/mission/quest_item/shared_sayama_edosun_q2_needed.iff" result.attribute_template_id = -1 result.stfName("loot_nboo_n","sayama_edosun_q2_needed")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def create(kernel): result = Building() result.template = "object/building/poi/shared_dathomir_freedprisonerscamp_large1.iff" result.attribute_template_id = -1 result.stfName("poi_n","base_poi_building")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def create(kernel): result = Tangible() result.template = "object/tangible/furniture/all/shared_frn_all_throwpillow_med_s02.iff" result.attribute_template_id = 6 result.stfName("frn_n","frn_throwpillow")
anhstudios/swganh
[ 62, 37, 62, 37, 1297996365 ]
def __init__(self, plotly_name="annotations", parent_name="layout.scene", **kwargs): super(AnnotationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, data_class_str=kwargs.pop("data_class_str", "Annotation"), data_docs=kwargs.pop( ...
plotly/python-api
[ 13052, 2308, 13052, 1319, 1385013188 ]
def __init__(self, config, logHandlers=None): self._config = DeviceClientConfig(**config) AbstractClient.__init__( self, domain=self._config.domain, organization=self._config.orgId, clientId=self._config.clientId, username=self._config.usernam...
ibm-watson-iot/iot-python
[ 186, 162, 186, 4, 1397657256 ]
def make_shell_context(): return dict(app=app, db=db, User=User, Role=Role)
Sarthak30/User-Registration
[ 4, 2, 4, 1, 1437956977 ]
def test(): """Run the unit tests.""" import unittest tests = unittest.TestLoader().discover('tests') unittest.TextTestRunner(verbosity=2).run(tests)
Sarthak30/User-Registration
[ 4, 2, 4, 1, 1437956977 ]
def __init__( self, *args, **kwargs ): self.isRunning = True self.hash = kwargs["hash"] self.standalone = kwargs["standalone"] self.teamObjs = {}
enen92/script.matchcenter
[ 2, 3, 2, 3, 1455478036 ]
def getTweets(self): self.getControl(32500).setLabel("#"+self.hash) self.getControl(32503).setImage(os.path.join(addon_path,"resources","img","twitter_sm.png")) tweetitems = [] tweets = tweet.get_hashtag_tweets(self.hash) if tweets: for _tweet in tweets: td = ssutils.get_timedelta_string(datetime.datet...
enen92/script.matchcenter
[ 2, 3, 2, 3, 1455478036 ]
def stopRunning(self): self.isRunning = False self.close() if not self.standalone: mainmenu.start()
enen92/script.matchcenter
[ 2, 3, 2, 3, 1455478036 ]
def onClick(self,controlId): if controlId == 32501: teamid = self.getControl(controlId).getSelectedItem().getProperty("teamid") matchhistory.start(teamid) elif controlId == 32514: self.reset()
enen92/script.matchcenter
[ 2, 3, 2, 3, 1455478036 ]
def copy_author_to_submission(user, book): author = Author( first_name=user.first_name, middle_name=user.profile.middle_name, last_name=user.last_name, salutation=user.profile.salutation, institution=user.profile.institution, department=user.profile.department, ...
ubiquitypress/rua
[ 10, 3, 10, 42, 1427716048 ]
def check_stage(book, check): if book.submission_stage >= check: pass elif book.submission_date: raise PermissionDenied() else: raise PermissionDenied()
ubiquitypress/rua
[ 10, 3, 10, 42, 1427716048 ]
def u(x): return codecs.unicode_escape_decode(x)[0]
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def u(x): return x
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def __init__(self): # generate files self._generate_addons_file() self._generate_md5_file() # notify user print("Finished updating addons xml and md5 files\n")
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def _generate_addons_file(self): # addon list addons = sorted(os.listdir(".")) # final addons text addons_xml = u("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<addons>\n") # loop thru and add each addons addon.xml file for addon in addons: t...
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def _generate_md5_file(self): # create a new md5 hash try: import md5 m = md5.new(open("addons.xml", "r").read()).hexdigest() except ImportError: import hashlib m = hashlib.md5(open("addons.xml", "r", encoding="UTF-8").read().encode("UTF-8")).hexdi...
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def _save_file(self, data, file): try: # write data to the file (use b for Python 3) open(file, "wb").write(data) except Exception as e: # oops print("An error occurred saving %s file!\n%s" % (file, e))
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def zipfolder(foldername, target_dir, zips_dir, addon_dir): zipobj = zipfile.ZipFile(zips_dir + foldername, 'w', zipfile.ZIP_DEFLATED) rootlen = len(target_dir) + 1 for base, dirs, files in os.walk(target_dir): for f in files: fn = os.path.join(base, f) zipobj.write(fn, os.pa...
dknlght/dkodi
[ 14, 22, 14, 9, 1437005334 ]
def __init__(self): pass
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def parseGET(headers,path): #separate the request params from the path splittedPath = path.split('?') msg = splittedPath[1] parsedDict = urlparse.parse_qs(msg) #Note values here are stored in lists, this is so one can handle many inputs with same name, for now we dont want that as...
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def parsePUT(headers,message): pass
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def parsePOST(headers,message):
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def handleSinglePart(headers,message): contentLength = long(headers['content-length']) if headers['content-type'] == 'application/x-www-form-urlencoded' or headers['content-type'] == 'application/x-www-form-urlencoded; charset=UTF-8': #TODO generalize msg = message.read(contentLength) ...
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def handleMultipart(mainHeaders,msgStream): files = dict() params = dict() BOUNDARY = "--"+HttpMethodParser.extractBoundary(mainHeaders) stopBoundary = BOUNDARY+"--" terminateBoundary = ''
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def extractBoundary(headers): regexp = 'boundary=(.*)' if 'Content-Type' in headers: contentType = headers['Content-Type'] else: contentType = headers['content-type'] match = re.search(regexp,contentType) if match == None: raise Exception('C...
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def runTest(self,realFile): # For TESTING PURPOSES #referenceFilename = "/Users/iman/Desktop/snowleopard_10a432_userdvd.dmg" referenceFilename = "/Users/iman/Documents/workspace/copernicus/examples/single.tar.gz" resultFilename = "/Users/iman/Desktop/cpctemp/resfil...
gromacs/copernicus
[ 14, 4, 14, 4, 1421754399 ]
def mgo_text_split(query_text): ''' split text to support mongodb $text match on a phrase ''' sep = r'[`\-=~!@#$%^&*()_+\[\]{};\'\\:"|<,./<>?]' word_lst = re.split(sep, query_text) text_query = ' '.join('\"{}\"'.format(w) for w in word_lst) return text_query
ysrc/xunfeng
[ 3349, 1304, 3349, 68, 1482119796 ]
def create_arm( cls, bones ): org_bones = cls.org_bones
Microvellum/Fluid-Designer
[ 69, 30, 69, 37, 1461884765 ]
def phi_b(self): return self.omega_rf*self.tau/2.
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def delta_b(self): return self.dE_b/(self.beta_sq*self.energy)
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def dE_b(self): return np.sqrt(self.beta_sq*self.energy*self.voltage*(1 - np.cos(self.phi_b)) / (np.pi*self.harmonic*self.eta_0))
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def integral(self): return integrate.quad(lambda x: np.sqrt(2.*(np.cos(x) - np.cos(self.phi_b))), 0, self.phi_b)[0]
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def emittance(self): return 4.*self.energy*self.omega_s0*self.beta_sq*self.integral / \ (self.omega_rf**2*self.eta_0)
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def relativistic_quantities(self):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def frequencies(self):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def tune(self):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def bucket_parameters(self):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def emittance_from_bunch_length(self, four_sigma_bunch_length):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def bunch_length_from_emittance(self, emittance):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def setupUi(self, mainWindow):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def retranslateUi(self, mainWindow):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def addactions(self, mainWindow):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def pbHandler(self):
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def cbEnergyHandler(self, text): if text == 'Custom': self.leCustom.show() self.lbEV1.show() else: self.leCustom.hide() self.lbEV1.hide()
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def cbGammaTHandler(self, text): if text == 'Custom': self.reCustom.show() else: self.reCustom.hide()
blond-admin/BLonD
[ 10, 23, 10, 17, 1413184470 ]
def __init__(self, community): super(SignatureRequestCache, self).__init__(community.request_cache, u'signature-request')
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def __init__(self, community, block_id): super(BlockRequestCache, self).__init__(community.request_cache, u'block-request') self.community = community self.block_id = block_id
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def __init__(self, community, contract_id, contract_type, deferred, min_responses, max_responses): super(TraversalRequestCache, self).__init__(community.request_cache, u'traversal-request') self.logger = community.logger self.contract_id = contract_id self.contract_type = contract_type ...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def add_response(self, public_key, response_tuple): # Only allow 1 response per peer if public_key in self.public_keys: return False self.public_keys.append(public_key) self.responses[response_tuple] = self.responses.get(response_tuple, 0) + 1 # If we already have a...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def __init__(self, dispersy, master, my_member): super(BlockchainCommunity, self).__init__(dispersy, master, my_member) self.logger = logging.getLogger('BlockchainLogger') self.incoming_contracts = OrderedDict() self.incoming_blocks = {} self.data_manager = None
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def initialize_database(self, database_fn=''): if database_fn: database_fn = os.path.join(self.dispersy.working_directory, database_fn) self.data_manager = BlockchainDataManager(database_fn) self.data_manager.initialize()
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def get_master_members(cls, dispersy): # generated: Fri Feb 24 11:22:22 2017 # curve: None # len: 571 bits ~ 144 bytes signature # pub: 170 3081a7301006072a8648ce3d020106052b81040027038192000407b # acf5ae4d3fe94d49a7f94b7239e9c2d878b29f0fbdb7374d5b6a09d9d6fba80d # 3807aff...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def initiate_conversions(self): return [DefaultConversion(self), BlockchainConversion(self)]
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def send_message(self, msg_type, candidates, payload_dict): self.logger.debug('Sending %s message to %d candidate(s)', msg_type, len(candidates)) meta = self.get_meta_message(msg_type) message = meta.impl(authentication=(self.my_member,), distribution=(self.claim_glob...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def send_signature_request(self, contract, candidate): cache = self.request_cache.add(SignatureRequestCache(self)) return self.send_message(u'signature-request', (candidate,), {'identifier': cache.number, 'contract': contract.to_dict(...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def send_signature_response(self, candidate, contract, identifier): return self.send_message(u'signature-response', (candidate,), {'identifier': identifier, 'contract': contract.to_dict()})
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def on_contract(self, messages): for message in messages: contract = Contract.from_dict(message.payload.dictionary['contract']) if contract is None: self.logger.warning('Dropping invalid contract from %s', message.candidate.sock_addr) continue ...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def on_block_request(self, messages): for message in messages: block_id = message.payload.dictionary['block_id'] self.logger.debug('Got block-request for id %s', b64encode(block_id)) block = self.data_manager.get_block(block_id) if block is not None: ...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def process_blocks_after(self, block): # Process any orphan blocks that depend on the current block for orphan in self.incoming_blocks.values(): if orphan.previous_hash == block.id: del self.incoming_blocks[orphan.id] if self.process_block(orphan): ...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def check_block(self, block): if self.get_block_packet_size(block) > MAX_PACKET_SIZE: self.logger.debug('Block failed check (block too large)') return False if not self.check_proof(block): # Don't log message when we created the block if block.creator != ...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def create_block(self): latest_index = self.data_manager.get_block_indexes(limit=1)[0] prev_block = self.data_manager.get_block(latest_index.block_id) if latest_index is not None else None block = Block() block.previous_hash = prev_block.id if prev_block is not None else BLOCK_GENESIS_H...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def get_past_blocks(self, block, num_past): result = [] current = block for _ in range(num_past): current = self.data_manager.get_block(current.previous_hash) if current is None: return None result.append(current) return result
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def check_contract(self, contract, fail_without_parent=True): if not contract.verify(): self.logger.debug('Contract failed check (invalid signature)') return False if contract.previous_hash and fail_without_parent: prev_contract = self.incoming_contracts.get(contract...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def finalize_contract(self, contract, sign=False): # Final checks? if sign: contract.sign(self.my_member) # Add contract to database self.data_manager.add_contract(contract) return True
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def on_traversal_request(self, messages): for message in messages: msg_dict = {'identifier': message.payload.dictionary['identifier']} try: contract_type = ObjectType(message.payload.dictionary['contract_type']) except (ValueError, KeyError): ...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def traverse_contracts(self, contract_id, contract_type): contract_of_type = None contract = self.data_manager.get_contract(contract_id) \ if self.data_manager.contract_on_blockchain(contract_id) else None # Traverse contract chain while contract: if contr...
Tribler/decentralized-mortgage-market
[ 2, 1, 2, 9, 1486976150 ]
def _import_OrderedDict(): import collections try: return collections.OrderedDict except AttributeError: from . import ordered_dict return ordered_dict.OrderedDict
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _import_c_make_encoder(): try: from ._speedups import make_encoder return make_encoder except ImportError: return None
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', default=None, use_decimal=True, namedtuple_as_object=True, tuple_as_array=True, bigint_as_string=False, sort_keys=False, item_sort_key=N...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def load(fp, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, use_decimal=False, namedtuple_as_object=True, tuple_as_array=True, **kw): """Deserialize ``fp`` (a ``.read()``-supporting file-like object containing a J...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def _toggle_speedups(enabled): from . import decoder as dec from . import encoder as enc from . import scanner as scan c_make_encoder = _import_c_make_encoder() if enabled: dec.scanstring = dec.c_scanstring or dec.py_scanstring enc.c_make_encoder = c_make_encoder enc.encode_b...
SickGear/SickGear
[ 574, 83, 574, 2, 1415773777 ]
def check_tags(self, server=None, rule=None): valid_rule = True server_tags = server.get('tags', []) server_tags = [str(t) for t in server_tags] tags = rule.get('tags', []) tags = [str(t) for t in tags] # Check tags first if len(server_tags) > 0 and len(tags) >...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def check(self, data, server): alerts = False account_id = server.get('account_id', None) # System alerts rules = alerts_model.get_alerts(type='system', server=server) if rules: alerts = system_alerts.check(data=data, rules=rules, server=server) if aler...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def check_rule_and_save(self, process_data_dict=None, rule=None, process_id=None, server_id=None): process_data = next((item for item in process_data_dict if item["p"] == process_id), None) if process_data: alert = process_alerts.check(process_data, rule) if alert: ...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def check(self, data=None, plugin=None, server=None): plugin_data = data.get('gauges', None) rules = alerts_model.get_alerts_for_plugin(plugin=plugin) if len(rules) > 0: for rule in rules: alert = plugin_alerts.check(data=plugin_data, rule=rule) if ...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def check(self, data, server): process_data_dict = data.get('data', None) rules = alerts_model.get_alerts(type='uptime', server=server) if len(rules) + len(process_data_dict) > 0: for rule in rules: process_id = rule['process'] process_data = next((...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def check(self): time_now = unix_utc_now() alerts = alerts_model.get_alerts_not_sending_data() for alert in alerts: period = alert.get('period') for server in alert.get('server_data'): last_check = server.get('last_check') # Skip all the ...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def check(self, data=None, server=None): alerts = alerts_model.get_alerts(type='health_check') for alert in alerts: # Data is list for d in data: trigger = healthcheck_alert_checker.check(data=d, rule=alert) # Will scan all the data, check for re...
amonapp/amon
[ 1338, 115, 1338, 37, 1284053941 ]
def visit_account_settings_page(self): """ Visit the account settings page for the current user, and store the page instance as self.account_settings_page. """ # pylint: disable=attribute-defined-outside-init self.account_settings_page = AccountSettingsPage(self.browser) ...
analyseuc3m/ANALYSE-v1
[ 10, 5, 10, 1, 1460987160 ]
def settings_changed_event_filter(self, event): """Filter out any events that are not "settings changed" events.""" return event['event_type'] == self.USER_SETTINGS_CHANGED_EVENT_NAME
analyseuc3m/ANALYSE-v1
[ 10, 5, 10, 1, 1460987160 ]
def settings_change_initiated_event_filter(self, event): """Filter out any events that are not "settings change initiated" events.""" return event['event_type'] == self.CHANGE_INITIATED_EVENT_NAME
analyseuc3m/ANALYSE-v1
[ 10, 5, 10, 1, 1460987160 ]
def get_settings_page_url(self): """The absolute URL of the account settings page given the test context.""" return self.relative_path_to_absolute_uri(self.ACCOUNT_SETTINGS_REFERER)
analyseuc3m/ANALYSE-v1
[ 10, 5, 10, 1, 1460987160 ]
def test_link_on_dashboard_works(self): """ Scenario: Verify that the "Account" link works from the dashboard. Given that I am a registered user And I visit my dashboard And I click on "Account" in the top drop down Then I should see my account settings page """...
analyseuc3m/ANALYSE-v1
[ 10, 5, 10, 1, 1460987160 ]