Esempio n. 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))
Esempio n. 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))
Esempio n. 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))