def METHOD_NAME(self):
    'Test TCP reset_flags'
    # Test 1
    self.tcp.set_th_flags(19) # ACK+SYN+FIN
    self.assertEqual(self.tcp.get_th_flags(), 19) 
    self.assertEqual(self.tcp.get_ACK(), 1)
    self.assertEqual(self.tcp.get_SYN(), 1)
    self.assertEqual(self.tcp.get_FIN(), 1)
    self.assertEqual(self.tcp.get_RST(), 0)
    self.tcp.reset_flags(0x02)
    self.assertEqual(self.tcp.get_th_flags(), 17) 
    # Test 2
    flags = int('10011', 2) # 19 = ACK+SYN+FIN
    self.tcp.set_th_flags(flags) 
    self.assertEqual(self.tcp.get_th_flags(), 19) 
    # 010011
    # 000010
    # ------
    # 010001 = 17
    self.tcp.reset_flags(int('000010',2))
    self.assertEqual(self.tcp.get_th_flags(), 17) 
    # Test 3
    flags = int('10011', 2) # 19 = ACK+SYN+FIN
    self.tcp.set_th_flags(flags) 
    self.assertEqual(self.tcp.get_th_flags(), 19) 
    # 010011
    # 010001
    # ------
    # 000010 = 2
    self.tcp.reset_flags(int('010001',2))
    self.assertEqual(self.tcp.get_th_flags(), 2) 