def METHOD_NAME(self):
    a = get_mosaic("abc", 1, "mosaic")
    b = get_mosaic("abc", 1, "mosaic")
    c = get_mosaic("abc", 2, "xxx")
    merged = _merge_mosaics([a, b])
    self.assertEqual(merged[0].quantity, 2)
    self.assertEqual(len(merged), 1)
    a.quantity = 1
    b.quantity = 10
    merged = _merge_mosaics([a, b])
    self.assertEqual(merged[0].quantity, 11)
    a.namespace = "abcdef"
    merged = _merge_mosaics([a, b])
    self.assertEqual(len(merged), 2)
    merged = _merge_mosaics([a, b, c])
    self.assertEqual(len(merged), 3)
    a.namespace = "abcdef"
    a.quantity = 1
    a.mosaic = "mosaic"
    b.namespace = "abc"
    b.quantity = 2
    b.mosaic = "mosaic"
    c.namespace = "abc"
    c.mosaic = "mosaic"
    c.quantity = 3
    merged = _merge_mosaics([a, b, c])
    self.assertEqual(merged[0].quantity, 1)
    self.assertEqual(merged[1].quantity, 5)
    self.assertEqual(len(merged), 2)
    a.namespace = "abc"
    a.quantity = 1
    a.mosaic = "mosaic"
    b.namespace = "abc"
    b.quantity = 2
    b.mosaic = "mosaic"
    c.namespace = "abc"
    c.mosaic = "mosaic"
    c.quantity = 3
    merged = _merge_mosaics([a, b, c])
    self.assertEqual(merged[0].quantity, 6)
    self.assertEqual(len(merged), 1)