Пример #1
0
 def tearDown(self):
     if hasattr(self, "_connection") \
     and self._connection is not None:
         self._connection.begin_transaction()
         purge_customer(self._connection, _test_username)
         self._connection.commit()
         self._connection.close()
         self._connection = None
Пример #2
0
 def setUp(self):
     self.tearDown()
     self._connection = get_central_connection()
     self._connection.begin_transaction()
     purge_customer(self._connection, _test_username)
     create_customer(self._connection, _test_username)
     add_key_to_customer(self._connection, _test_username)
     self._connection.commit()
Пример #3
0
 def tearDown(self):
     if hasattr(self, "_connection") \
     and self._connection is not None:
         self._connection.begin_transaction()
         purge_customer(self._connection, _test_username)
         self._connection.commit()
         self._connection.close()
         self._connection = None
Пример #4
0
 def setUp(self):
     self.tearDown()
     self._connection = get_central_connection()
     self._connection.begin_transaction()
     purge_customer(self._connection, _test_username)
     create_customer(self._connection, _test_username)
     add_key_to_customer(self._connection, _test_username)
     self._connection.commit()
Пример #5
0
def _handle_purge_customer(connection, options):
    sys.stderr.write("purging customer {0}\n".format(options.username))
    purge_customer(connection, options.username)
    sys.stderr.write("purged {0}\n".format(options.username))
Пример #6
0
def _handle_purge_customer(connection, options):
    sys.stderr.write("purging customer {0}\n".format(options.username))
    purge_customer(connection, options.username)
    sys.stderr.write("purged {0}\n".format(options.username))
Пример #7
0
def _handle_purge_customer(connection, options):
    print >> sys.stderr, "purging customer", options.username
    purge_customer(connection, options.username)
    print >> sys.stderr, "purged", options.username