コード例 #1
0
ファイル: test_dummy.py プロジェクト: helixyte/tractor
 def __alter_to_trac_with_all_permissions(self, trac=None):
     if trac is None:
         trac = DummyTrac()
     trac.is_valid_connection = True
     trac.get_only = False
     url = 'http://%s:%s@%s' % (INVALID_USER, INVALID_PASSWORD,
                                INVALID_REALM)
     trac.url = url
     return trac
コード例 #2
0
 def __alter_to_trac_with_all_permissions(self, trac=None):
     if trac is None:
         trac = DummyTrac()
     trac.is_valid_connection = True
     trac.get_only = False
     url = 'http://%s:%s@%s' % (INVALID_USER, INVALID_PASSWORD,
                                INVALID_REALM)
     trac.url = url
     return trac
コード例 #3
0
ファイル: test_dummy.py プロジェクト: helixyte/tractor
 def __alter_to_trac_with_invalid_connection(self, trac=None):
     if trac is None:
         trac = DummyTrac()
     trac.is_valid_connection = False
     return trac
コード例 #4
0
 def test_init(self):
     trac = DummyTrac()
     self.assert_is_none(trac.is_valid_connection)
     self.assert_is_none(trac.get_only)
     self.assert_equal(trac.ticket_counter, 0)
コード例 #5
0
 def __alter_to_trac_with_invalid_connection(self, trac=None):
     if trac is None:
         trac = DummyTrac()
     trac.is_valid_connection = False
     return trac