def test__validate_not_existing_speaker(self):
    with self.assertRaises(AssertionError):
        self.c._validate_not_existing_speaker('thing', '1.2.3.4', 1024)
    self.c._validate_not_existing_speaker('udp', '1.2.3.4', 1024)
    self.c._speakers = {('udp', '1.2.3.4', 1024): None}
    with self.assertRaises(RuntimeError):
        self.c._validate_not_existing_speaker('udp', '1.2.3.4', 1024)
    self.c._validate_not_existing_speaker('udp', '1.2.3.4', 1023)
def test__validate_not_existing_speaker(self):
    with self.assertRaises(AssertionError):
        self.c._validate_not_existing_speaker('thing', '1.2.3.4', 1024)
    self.c._validate_not_existing_speaker('udp', '1.2.3.4', 1024)
    self.c._speakers = {('udp', '1.2.3.4', 1024): None}
    with self.assertRaises(RuntimeError):
        self.c._validate_not_existing_speaker('udp', '1.2.3.4', 1024)
    self.c._validate_not_existing_speaker('udp', '1.2.3.4', 1023)