def test_n_ge_k(self): self.assertEqual(n_parts(11, 5), 10) self.assertEqual(n_parts(11, 11), 1)
def test_equal(self): self.assertEqual(n_parts(5, 5), 1)
def test_n_le_k(self): self.assertEqual(n_parts(0, 3), 0) self.assertEqual(n_parts(3, 7), 0)
def test_zero(self): self.assertEqual(n_parts(0, 0), 1)