'Two records with equal priorities compare on weight (ascending).'

def test_pickServerSamePriorities(self):

    record1 = dns.Record_SRV(10, 10, 5222, 'host1.example.org')
    record2 = dns.Record_SRV(10, 20, 5222, 'host2.example.org')
    self.connector.orderedServers = [record2, record1]
    self.connector.servers = []
    self.patch(random, 'randint', self._randint)
    self.randIntResults = [0, 0]
    self.assertEqual(('host1.example.org', 5222), self.connector.pickServer())
    self.assertEqual(('host2.example.org', 5222), self.connector.pickServer())
