Beispiel #1
0
    def missing_name_test(self):
        class Missing:
            features = ('foo')

            def get_data(self):
                pass
        assert_false(pluginsystem._check_plugin(Missing))
Beispiel #2
0
    def missing_features_test(self):
        class Missing:
            name = 'foo'

            def get_data(self):
                pass
        assert_false(pluginsystem._check_plugin(Missing))
    def missing_features_test(self):
        class Missing:
            name = 'foo'

            def get_data(self):
                pass

        assert_false(pluginsystem._check_plugin(Missing))
    def missing_name_test(self):
        class Missing:
            features = ('foo')

            def get_data(self):
                pass

        assert_false(pluginsystem._check_plugin(Missing))
Beispiel #5
0
    def name_wrong_type_test(self):
        class NoName:
            name = ['foo']  # this is not a string
            features = ('foo',)

            def get_data(self):
                pass
        assert_false(pluginsystem._check_plugin(NoName))
Beispiel #6
0
    def features_wrong_type_test(self):
        class NoName:
            name = 'foo'
            features = ('foo')  # this is NOT a tuple!

            def get_data(self):
                pass
        assert_false(pluginsystem._check_plugin(NoName))
Beispiel #7
0
    def empty_name_test(self):
        class NoName:
            name = ''
            features = ('foo',)

            def get_data(self):
                pass
        assert_false(pluginsystem._check_plugin(NoName))
Beispiel #8
0
    def empty_features_test(self):
        class NoFeatures:
            name = 'foo'
            features = ()

            def get_data(self):
                pass
        assert_false(pluginsystem._check_plugin(NoFeatures))
    def name_wrong_type_test(self):
        class NoName:
            name = ['foo']  # this is not a string
            features = ('foo', )

            def get_data(self):
                pass

        assert_false(pluginsystem._check_plugin(NoName))
    def features_wrong_type_test(self):
        class NoName:
            name = 'foo'
            features = ('foo')  # this is NOT a tuple!

            def get_data(self):
                pass

        assert_false(pluginsystem._check_plugin(NoName))
    def empty_name_test(self):
        class NoName:
            name = ''
            features = ('foo', )

            def get_data(self):
                pass

        assert_false(pluginsystem._check_plugin(NoName))
    def empty_features_test(self):
        class NoFeatures:
            name = 'foo'
            features = ()

            def get_data(self):
                pass

        assert_false(pluginsystem._check_plugin(NoFeatures))
    def missing_getdata_test(self):
        class Missing:
            name = 'foo'
            features = ('foo', )

        assert_false(pluginsystem._check_plugin(Missing))
Beispiel #14
0
 def missing_getdata_test(self):
     class Missing:
         name = 'foo'
         features = ('foo',)
     assert_false(pluginsystem._check_plugin(Missing))