Beispiel #1
0
 def test_expected_cols(self):
     self.stubs.Set(instance, "INSTANCE_OPTIONAL_NON_COLUMNS", ["bar"])
     self.assertEqual(["foo"], instance.expected_cols(["foo", "bar"]))
     self.assertEqual(None, instance.expected_cols(None))
Beispiel #2
0
 def test_expected_cols(self):
     self.stubs.Set(instance, 'INSTANCE_OPTIONAL_NON_COLUMNS', ['bar'])
     self.assertEqual(['foo'], instance.expected_cols(['foo', 'bar']))
     self.assertEqual(None, instance.expected_cols(None))
Beispiel #3
0
 def test_expected_cols(self):
     self.stubs.Set(instance, 'INSTANCE_OPTIONAL_NON_COLUMNS', ['bar'])
     self.assertEqual(['foo'], instance.expected_cols(['foo', 'bar']))
     self.assertEqual(None, instance.expected_cols(None))