# Path: pyeqs/dsl/exists.py
# class Exists(dict):
# 
#     def __init__(self, field):
#         super(Exists, self).__init__()
#         self.field = field
#         self["exists"] = self._build_dict()
# 
#     def _build_dict(self):
#         return {
#             "field": self.field
#         }
# 
# 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 Exists
from tests.helpers import homogeneous
# -*- coding: utf-8 -*-
from __future__ import unicode_literals



def test_exists():
    """
    Create Exists Block
    """
    # When add an Exists Block

# Path: pyeqs/dsl/exists.py
# class Exists(dict):
# 
#     def __init__(self, field):
#         super(Exists, self).__init__()
#         self.field = field
#         self["exists"] = self._build_dict()
# 
#     def _build_dict(self):
#         return {
#             "field": self.field
#         }
# 
# 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_exists.py
from pyeqs.dsl import Exists
from tests.helpers import homogeneous

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



def test_exists():
    """
    Create Exists Block
    """
    # When add an Exists Block

    t = Exists("foo")