def test_add_scenario_attributes(self): s = Scenario(attributes={'id': '111'}) s.save() eq_(s.id, Scenario.objects(attributes__id='111').only('id').first().id)
def teardown(self): Scenario.objects().delete() User.objects().delete() History.objects().delete() Intent.objects().delete()
def test_add_scenario(self): s = Scenario() s.save() eq_(s.id, Scenario.objects().only('id').first().id)
def test_import_scenario(self): self.client.import_scenario("tests/test_scenario.json") eq_("112", Scenario.objects()[1].attributes["id"])