コード例 #1
0
ファイル: test_Smoke.py プロジェクト: tallowen/funk-smoke
    def test_get_collections(self):
        self.email = "*****@*****.**" % (uuid.uuid4().hex)
        self.password = "******"
        self.username = create_user(self.email, self.password, self)
        self.setBasicAuth(self.username, self.password)

        # The description should be set in the configuration file
        get_collection_info(self.email, "passowrd", self)
コード例 #2
0
ファイル: test_Smoke.py プロジェクト: tallowen/funk-smoke
    def test_get_collections(self):
        # Make sure we have some data
        basic_sync(self.email, self.password, self)
        # Query get_collection_info twice
        first_times = get_collection_info(self.email, "passowrd", self)
        second_times = get_collection_info(self.email, "passowrd", self)

        # Make sure that the times are the same
        for collection in first_times:
            self.assert_(first_times[collection] == second_times[collection])

        # add some more data
        basic_sync(self.email, self.password, self)

        # get some more times
        third_times = get_collection_info(self.email, "passowrd", self)

        # make sure that the times are bigger (ie newer)
        for collection in first_times:
            self.assert_(first_times[collection] < third_times[collection])