"""
Tests create_singletons command
"""
from opal.core.test import OpalTestCase

from opal.templatetags import panels

from opal.tests.models import Demographics

class RecordPanelTestCase(OpalTestCase):
    def test_record_panel(self):
        expected = dict(
            name='demographics',
            singleton=True,
            title='Demographics',
            detail_template='records/demographics.html',
            icon=None,
            editable=1,
            angular_filter=None,
            noentries=None,
            only_display_if_exists=False
        )
        result = panels.record_panel(Demographics())
        self.assertEqual(expected, result)

Add test for record_panel