# Path: compmusic/tags.py
# def has_carnatic_form(tag):
# def has_raaga(tag):
# def has_taala(tag):
# def has_raag(tag):
# def has_taal(tag):
# def has_laya(tag):
# def has_section(tag):
# def has_makam(tag):
# def has_usul(tag):
# def has_makam_form(tag):
# def has_hindustani_form(tag):
# def parse_raaga(raaga):
# def parse_taala(taala):
# def parse_makam(makam):
# def _parse_num_and_value(expression, target):
# def parse_usul(usul):
# def parse_makam_form(form):
# def parse_raag(raag):
# def parse_taal(taal):
# def parse_hindustani_form(form):
# def parse_carnatic_form(form):
# def parse_laya(laya):
# def group_makam_tags(makams, forms, usuls):


import unittest
from compmusic import tags
        self.assertEqual("adi (tishra nade)", tags.parse_taala(t))

    def test_form(self):
        t = "form: keertana (devara nama)"
        self.assertEqual((0, "keertana (devara nama)"), tags.parse_carnatic_form(t))

class HindustaniTagTest(unittest.TestCase):
    def test_raag(self):
        t = "raga1:abhogi"
        self.assertEqual(True, tags.has_raag(t))
        self.assertEqual((1, "abhogi"), tags.parse_raag(t))

        t = "raga1: abhogi"
        self.assertEqual(True, tags.has_raag(t))
        self.assertEqual((1, "abhogi"), tags.parse_raag(t))

    def test_taal(self):
        t = "tala2:teental"
        self.assertEqual(True, tags.has_taal(t))
        self.assertEqual((2, "teental"), tags.parse_taal(t))

        t = "tala2: teental"
        self.assertEqual(True, tags.has_taal(t))
        self.assertEqual((2, "teental"), tags.parse_taal(t))

    def test_laya(self):
        t = "laya: drut"
        self.assertEqual(True, tags.has_laya(t))
        self.assertEqual((0, "drut"), tags.parse_laya(t))


# Path: compmusic/tags.py
# def has_carnatic_form(tag):
# def has_raaga(tag):
# def has_taala(tag):
# def has_raag(tag):
# def has_taal(tag):
# def has_laya(tag):
# def has_section(tag):
# def has_makam(tag):
# def has_usul(tag):
# def has_makam_form(tag):
# def has_hindustani_form(tag):
# def parse_raaga(raaga):
# def parse_taala(taala):
# def parse_makam(makam):
# def _parse_num_and_value(expression, target):
# def parse_usul(usul):
# def parse_makam_form(form):
# def parse_raag(raag):
# def parse_taal(taal):
# def parse_hindustani_form(form):
# def parse_carnatic_form(form):
# def parse_laya(laya):
# def group_makam_tags(makams, forms, usuls):


# Path: test/tag_test.py
import unittest
from compmusic import tags

        self.assertEqual("adi (tishra nade)", tags.parse_taala(t))

    def test_form(self):
        t = "form: keertana (devara nama)"
        self.assertEqual((0, "keertana (devara nama)"), tags.parse_carnatic_form(t))

class HindustaniTagTest(unittest.TestCase):
    def test_raag(self):
        t = "raga1:abhogi"
        self.assertEqual(True, tags.has_raag(t))
        self.assertEqual((1, "abhogi"), tags.parse_raag(t))

        t = "raga1: abhogi"
        self.assertEqual(True, tags.has_raag(t))
        self.assertEqual((1, "abhogi"), tags.parse_raag(t))

    def test_taal(self):
        t = "tala2:teental"
        self.assertEqual(True, tags.has_taal(t))
        self.assertEqual((2, "teental"), tags.parse_taal(t))

        t = "tala2: teental"
        self.assertEqual(True, tags.has_taal(t))
        self.assertEqual((2, "teental"), tags.parse_taal(t))

    def test_laya(self):
        t = "laya: drut"
        self.assertEqual(True, tags.has_laya(t))
        self.assertEqual((0, "drut"), tags.parse_laya(t))


        t = "laya1: madhya"