Example #1
0
	def test_get_backend(self):
		class Foo(object):
			pass

		be = get_backend(Foo())
		assert isinstance(be, ObjectsBackend)
Example #2
0
	def test_get_backend(self):
		assert isinstance(get_backend(QuerySet()), DjangoBackend)
		assert isinstance(get_backend(Manager()), DjangoBackend)
Example #3
0
    def test_get_backend(self):
        class Foo(object):
            pass

        be = get_backend(Foo())
        assert isinstance(be, ObjectsBackend)
Example #4
0
 def test_get_backend(self):
     assert isinstance(get_backend(QuerySet()), DjangoBackend)
     assert isinstance(get_backend(Manager()), DjangoBackend)
Example #5
0
	def apply(self, iterable):
		backend = get_backend(iterable)

		return backend.apply(self, iterable)
Example #6
0
    def apply(self, iterable):
        backend = get_backend(iterable)

        return backend.apply(self, iterable)