Пример #1
0
    def setUp(self):
        MARGARINE_API.config["TESTING"] = True
        self.application = MARGARINE_API.test_client()

        self.account_name = "test_user"

        self.url = "/{i.API_VERSION}/users/{username}"
        self.url = self.url.format(username = self.account_name, i = information)
Пример #2
0
    def setUp(self):
        MARGARINE_API.config["TESTING"] = True
        self.application = MARGARINE_API.test_client()

        self.article_url = "http://blog.alunduil.com/posts/an-explanation-of-lvm-snapshots.html"
        self.article_uuid = uuid.uuid5(uuid.NAMESPACE_DNS, self.article_url)

        self.url = "/{i.API_VERSION}/articles/"
        self.url = self.url.format(i = information)