# Path: egasub/ega/entities/dataset_link.py
# class DatasetLink(object):
#     def __init__(self,label,url):
#         self.label = label
#         self.url = url
# 
#     def to_dict(self):
#         return {
#             'label' : self.label,
#             'url' : self.url
#             }
# 
#     def to_xml(self):
#         pass


from egasub.ega.entities.dataset_link import DatasetLink

link = DatasetLink('the label', 'http://www.example.com')

def test_label():
    assert 'the label' == link.label

def test_url():
    assert 'http://www.example.com' == link.url


# Path: egasub/ega/entities/dataset_link.py
# class DatasetLink(object):
#     def __init__(self,label,url):
#         self.label = label
#         self.url = url
# 
#     def to_dict(self):
#         return {
#             'label' : self.label,
#             'url' : self.url
#             }
# 
#     def to_xml(self):
#         pass


# Path: tests/test_dataset_link.py
from egasub.ega.entities.dataset_link import DatasetLink


link = DatasetLink('the label', 'http://www.example.com')

def test_label():
    assert 'the label' == link.label

def test_url():
    assert 'http://www.example.com' == link.url


def test_to_dict():