Esempio n. 1
0
 def test_existing_facts_with_prefix(self):
     self._save_fact('01')
     existing_facts = dict(Fact.existing_facts(
         self.survey, self.subject, 'prefix').items())
     self.assertEquals({'prefix-code1': '01'}, existing_facts)
Esempio n. 2
0
 def test_existing_facts_with_prefix(self):
     self._save_fact('01')
     existing_facts = dict(
         Fact.existing_facts(self.survey, self.subject, 'prefix').items())
     self.assertEquals({'prefix-code1': '01'}, existing_facts)
Esempio n. 3
0
 def test_existing_facts(self):
     self._save_fact('01')
     existing_facts = dict(Fact.existing_facts(self.survey, self.subject).items())
     self.assertEquals({'code1': '01'}, existing_facts)
Esempio n. 4
0
 def test_existing_facts(self):
     self._save_fact('01')
     existing_facts = dict(
         Fact.existing_facts(self.survey, self.subject).items())
     self.assertEquals({'code1': '01'}, existing_facts)