示例#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)
示例#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)
示例#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)
示例#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)