def METHOD_NAME(self):
    mem    = Memory(width=8, depth=4)
    wrport = mem.write_port()
    self.assertEqual(wrport.memory, mem)
    self.assertEqual(wrport.domain, "sync")
    self.assertEqual(wrport.granularity, 8)
    self.assertEqual(len(wrport.addr), 2)
    self.assertEqual(len(wrport.data), 8)
    self.assertEqual(len(wrport.en), 1)