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