Esempio n. 1
0
 def test_unknown(self):
     unknown_class = type('UnknownClass', (object,), {})
     self.assertEqual('unknown location', locations.get_loc(unknown_class))
Esempio n. 2
0
 def test_known(self):
     class SomeObject(object):
         pass
     self.assertIn('locations_test.py', locations.get_loc(SomeObject))
Esempio n. 3
0
 def test_unknown(self):
     unknown_class = type('UnknownClass', (object, ), {})
     self.assertEqual('unknown location', locations.get_loc(unknown_class))
Esempio n. 4
0
    def test_known(self):
        class SomeObject(object):
            pass

        self.assertIn('locations_test.py', locations.get_loc(SomeObject))
Esempio n. 5
0
 def test_unknown(self):
     self.assertEqual('unknown location',
                      locations.get_loc(unittest.TestCase))
Esempio n. 6
0
 def test_unknown(self):
     self.assertEqual('unknown location',
                      locations.get_loc(unittest.TestCase))