'Ensure you can add meta data to file'

def test_no_cache(self):

    class Noddy(Document, ):
        fields = DictField()
    Noddy.drop_collection()
    for i in range(100):
        noddy = Noddy()
        for j in range(20):
            noddy.fields[('key' + str(j))] = ('value    ' + str(j))
        noddy.save()
    docs = Noddy.objects.no_cache()
    counter = len([1 for i in docs])
    self.assertEqual(counter, 100)
    self.assertEqual(len(list(docs)), 100)
    with self.assertRaises(TypeError):
        len(docs)
    with query_counter() as q:
        list(docs)
        self.assertEqual(q, 1)
    with query_counter() as q:
        list(docs)
        self.assertEqual(q, 1)
