Beispiel #1
0
 def test_methods_of(self):
     obj = type('Fake', (object,),
                {name: lambda: 'fake_' for name in ('_a', 'b', 'c')})
     expected = [('b', obj.b), ('c', obj.c)]
     self.assertEqual(expected, manila_manage.methods_of(obj))
Beispiel #2
0
 def test_methods_of(self):
     obj = type('Fake', (object,),
                {name: lambda: 'fake_' for name in ('_a', 'b', 'c')})
     expected = [('b', obj.b), ('c', obj.c)]
     self.assertEqual(expected, manila_manage.methods_of(obj))
Beispiel #3
0
 def test_methods_of(self):
     obj = type("Fake", (object,), {name: lambda: "fake_" for name in ("_a", "b", "c")})
     expected = [("b", obj.b), ("c", obj.c)]
     self.assertEqual(expected, manila_manage.methods_of(obj))