Example #1
0
    def test_load_from(self):
        os.system("rm -rf Foobar")
        os.system("mkdir  Foobar")
        import time
        time.sleep(1)

        total = 100000
        original_model_data = OriginalModel.fake(total)
        Foobar = make_a_foobar(original_model_data)

        repr(Foobar)  # when 0 items
        Foobar.pull_data()
        self.assertEqual(len(Foobar), total)
        print repr(Foobar)
        os.system("rm -rf Foobar")