class TestGetPair(unittest.TestCase): def setUp(self): self.dna = DNA() def test_lowercase(self): self.dna.to_pair = "a" self.dna.get_pair() self.assertEqual(self.dna.to_pair, "A") def test_a_t(self): self.dna.to_pair = "A" self.dna.get_pair() self.assertEqual(self.dna.pair, "T") def test_t_a(self): self.dna.to_pair = "T" self.dna.get_pair() self.assertEqual(self.dna.pair, "A") def test_g_c(self): self.dna.to_pair = "G" self.dna.get_pair() self.assertEqual(self.dna.pair, "C") def test_c_g(self): self.dna.to_pair = "C" self.dna.get_pair()xb self.assertEqual(self.dna.pair, "G")