def test_create_grid_shouldReturnArrayWithLength400(self): textArr=create_grid(import_grid_text()) self.assertEquals(len(textArr),20) self.assertEquals(len(textArr[1]),20)
def test_calculateBounds_ShoulReturn3And16(self): nums=create_grid(import_grid_text()) lowerBound,highBound=calculateBounds(nums,4) self.assertEquals(lowerBound,4) self.assertEquals(highBound,17)
def test_import_grid_shouldReturnText(self): f=import_grid_text() self.assertTrue(f is not None) self.assertTrue(len(f)>0)