Beispiel #1
0
 def check_known_conditionals(self, text, conditionals, **kwds):
     d = self.gen_depset(text, **kwds)
     self.assertEqual(sorted(d.known_conditionals), sorted(conditionals.split()))
     # ensure it does the lookup *once*
     object.__setattr__(d, "restrictions", ())
     self.assertFalse(d.restrictions)
     self.assertEqual(sorted(d.known_conditionals), sorted(conditionals.split()))
Beispiel #2
0
 def check_known_conditionals(self, text, conditionals, **kwds):
     d = self.gen_depset(text, **kwds)
     self.assertEqual(sorted(d.known_conditionals),
                      sorted(conditionals.split()))
     # ensure it does the lookup *once*
     object.__setattr__(d, 'restrictions', ())
     self.assertFalse(d.restrictions)
     self.assertEqual(sorted(d.known_conditionals),
                      sorted(conditionals.split()))