class TestsCellModel(TestCase): """ Test Cell model and its methods """ def setUp(self): self.cell = Cell(1, 1, 1) def test_can_create_a_valid_cell(self): self.assertIsInstance(self.cell, Cell) def test_can_return_a_formatted_repr_for_object(self): self.assertEqual(self.cell.__repr__(), "Cell (1 1 1)") def test_can_return_a_formatted_str_for_object(self): self.assertEqual(self.cell.__str__(), "Cell (1 1 1)")