def test_load_bad(self): with self.assertRaises(ValueError): Field.fromstr('2;2;1,x,1')
def test_save_and_load(self): field = Field.generate((10, 10), 15) self.assertEqual(field, Field.fromstr(str(field)))
def test_load_bad(self): with self.assertRaises(ValueError): Field.fromstr('2;2;1,x,1')
def test_save_and_load(self): field = Field.generate((10, 10), 15) self.assertEqual(field, Field.fromstr(str(field)))