def test_sample(self):
self.assertEqual(self.square6.sample(), {Symbol('x'): 1, Symbol('y'): 3})
- self.assertEqual(self.empty.sample(), None)
+ with self.assertRaises(ValueError):
+ self.empty.sample()
self.assertEqual(self.universe.sample(), {})
def test_intersection(self):