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

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