Example #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)
Example #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)
Example #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)
Example #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)