# Path: pyeqs/dsl/term.py
# class Term(dict):
# 
#     def __init__(self, field_name, term):
#         super(Term, self).__init__()
#         self.field_name = field_name
#         self.term = term
#         self["term"] = self._build_dict()
# 
#     def _build_dict(self):
#         return {
#             self.field_name: self.term
#         }
# 
# Path: tests/helpers.py
# def homogeneous(a, b):
#     json.dumps(a, sort_keys=True).should.equal(json.dumps(b, sort_keys=True))


from pyeqs.dsl import Term
from tests.helpers import homogeneous
# -*- coding: utf-8 -*-
from __future__ import unicode_literals



def test_add_term():
    """
    Create Term Block
    """
    # When add a Term field

# Path: pyeqs/dsl/term.py
# class Term(dict):
# 
#     def __init__(self, field_name, term):
#         super(Term, self).__init__()
#         self.field_name = field_name
#         self.term = term
#         self["term"] = self._build_dict()
# 
#     def _build_dict(self):
#         return {
#             self.field_name: self.term
#         }
# 
# Path: tests/helpers.py
# def homogeneous(a, b):
#     json.dumps(a, sort_keys=True).should.equal(json.dumps(b, sort_keys=True))


# Path: tests/unit/test_term.py
from pyeqs.dsl import Term
from tests.helpers import homogeneous

# -*- coding: utf-8 -*-
from __future__ import unicode_literals



def test_add_term():
    """
    Create Term Block
    """
    # When add a Term field

    t = Term("foo", "bar")