def test_load_from_dict_text_type(self): name = 'foo' q = questions.load_from_dict({'kind': 'text', 'name': name}) self.assertEquals('text', q.kind) self.assertIsInstance(q, questions.Text) self.assertEquals(name, q.name)
def test_load_from_dict_text_type(self): name = "foo" q = questions.load_from_dict({"kind": "text", "name": name}) self.assertEqual("text", q.kind) self.assertIsInstance(q, questions.Text) self.assertEqual(name, q.name)