Exemplo n.º 1
0
 def setUp(self):
     super(DirRefreshTest, self).setUp()
     # Prepare our fixture.
     self.client_id = rdf_client.ClientURN("C.0000000000000001")
     fixture_test_lib.ClientFixture(self.client_id, self.token)
     gui_test_lib.CreateFileVersions(self.client_id, self.token)
     self.RequestAndGrantClientApproval("C.0000000000000001")
 def setUp(self):
     super().setUp()
     # Prepare our fixture.
     self.client_id = "C.0000000000000001"
     fixture_test_lib.ClientFixture(self.client_id)
     gui_test_lib.CreateFileVersions(self.client_id)
     self.RequestAndGrantClientApproval(self.client_id)
Exemplo n.º 3
0
    def setUp(self):
        super().setUp()
        self.client_id = "C.0000000000000001"

        with test_lib.FakeTime(test_lib.FIXED_TIME):
            fixture_test_lib.ClientFixture(self.client_id)

        gui_test_lib.CreateFileVersions(self.client_id)
        self.RequestAndGrantClientApproval("C.0000000000000001")
Exemplo n.º 4
0
    def setUp(self):
        super(TestFileView, self).setUp()
        # Prepare our fixture.
        self.client_id, self.unapproved_client_id = [
            u.Basename() for u in self.SetupClients(2)
        ]

        fixture_test_lib.ClientFixture(self.client_id, self.token)
        gui_test_lib.CreateFileVersions(rdf_client.ClientURN(self.client_id),
                                        self.token)
        self.RequestAndGrantClientApproval(self.client_id)
Exemplo n.º 5
0
    def setUp(self):
        super(TestFileView, self).setUp()
        # Prepare our fixture.
        self.client_id, self.unapproved_client_id = self.SetupClients(2)

        with test_lib.FakeTime(test_lib.FIXED_TIME):
            fixture_test_lib.ClientFixture(self.client_id)

        self.content_1, self.content_2 = gui_test_lib.CreateFileVersions(
            self.client_id)
        self.content_1_hash = rdf_objects.SHA256HashID.FromData(
            self.content_1).AsBytes()
        self.content_2_hash = rdf_objects.SHA256HashID.FromData(
            self.content_2).AsBytes()
        self.RequestAndGrantClientApproval(self.client_id)
Exemplo n.º 6
0
  def setUp(self):
    super(TestFileView, self).setUp()
    # Prepare our fixture.
    self.client_id, self.unapproved_client_id = [
        u.Basename() for u in self.SetupClients(2)
    ]

    fixture_test_lib.ClientFixture(self.client_id, self.token)
    self.content_1, self.content_2 = gui_test_lib.CreateFileVersions(
        rdf_client.ClientURN(self.client_id), self.token)
    self.content_1_hash = rdf_objects.SHA256HashID.FromData(
        self.content_1).AsBytes()
    self.content_2_hash = rdf_objects.SHA256HashID.FromData(
        self.content_2).AsBytes()
    self.RequestAndGrantClientApproval(self.client_id)