Ejemplo n.º 1
0
def test_get__all__entries_no__all__ok():
    class A(object):
        pass
    words = completer.get__all__entries(A())
    nt.assert_equal(words, [])
Ejemplo n.º 2
0
def test_get__all__entries_ok():
    class A(object):
        __all__ = ['x', 1]
    words = completer.get__all__entries(A())
    nt.assert_equal(words, ['x'])
Ejemplo n.º 3
0
def test_get__all__entries_no__all__ok():
    class A(object):
        pass

    words = completer.get__all__entries(A())
    nt.assert_equal(words, [])
Ejemplo n.º 4
0
def test_get__all__entries_ok():
    class A(object):
        __all__ = ['x', 1]

    words = completer.get__all__entries(A())
    nt.assert_equal(words, ['x'])
Ejemplo n.º 5
0
    def test_get__all__entries_no__all__ok(self):
        class A:
            pass

        words = completer.get__all__entries(A())
        self.assertEqual(words, [])
Ejemplo n.º 6
0
    def test_get__all__entries_ok(self):
        class A:
            __all__ = ["x", 1]

        words = completer.get__all__entries(A())
        self.assertEqual(words, ["x"])