from django.test import TestCase

from opps.channels.templatetags.menu_tags import ofKey


class OfKeyTest(TestCase):
    def test_tag(self):
        result = ofKey({"name": "andrews"}, "name")
        self.assertEqual(result, "andrews")

    def test_tag_is_none(self):
        result = ofKey(None, "name")
        self.assertEqual(result, "")

from django.test import TestCase

from opps.core.templatetags.obj_tags import ofKey


class OfKeyTest(TestCase):
    def test_tag(self):
        result = ofKey({"name": "andrews"}, "name")
        self.assertEqual(result, "andrews")

    def test_tag_is_none(self):
        result = ofKey(None, "name")
        self.assertEqual(result, "")

Fix import template tag obj_tags on test case core
Fix import template tag obj_tags on test case core

  from django.test import TestCase
  
- from opps.channels.templatetags.menu_tags import ofKey
+ from opps.core.templatetags.obj_tags import ofKey
  
  
  class OfKeyTest(TestCase):
      def test_tag(self):
          result = ofKey({"name": "andrews"}, "name")
          self.assertEqual(result, "andrews")
  
      def test_tag_is_none(self):
          result = ofKey(None, "name")
          self.assertEqual(result, "")
  
Fix import template tag obj_tags on test case core
## Code Before:
from django.test import TestCase

from opps.channels.templatetags.menu_tags import ofKey


class OfKeyTest(TestCase):
    def test_tag(self):
        result = ofKey({"name": "andrews"}, "name")
        self.assertEqual(result, "andrews")

    def test_tag_is_none(self):
        result = ofKey(None, "name")
        self.assertEqual(result, "")

## Instruction:
Fix import template tag obj_tags on test case core
## Code After:
from django.test import TestCase

from opps.core.templatetags.obj_tags import ofKey


class OfKeyTest(TestCase):
    def test_tag(self):
        result = ofKey({"name": "andrews"}, "name")
        self.assertEqual(result, "andrews")

    def test_tag_is_none(self):
        result = ofKey(None, "name")
        self.assertEqual(result, "")
