class TestBlockTest(TestCase): def setUp(self): self.b = TestBlockFactory() def test_is_valid_from_factory(self): self.b.full_clean() def test_create_from_dict(self): testblock = TestBlock.create_from_dict({ 'body': 'abc', }) self.assertEqual(testblock.display_name, 'Test Block') self.assertEqual(testblock.body, 'abc')
def setUp(self): self.b = TestBlockFactory()