# Path: halibot/jsdict.py
# class jsdict(dict):
# 	def __getattr__(self, name):
# 		return self[name]
# 
# 	def __setattr__(self, name, value):
# 		self[name] = value


import unittest
from halibot.jsdict import jsdict


class TestJsdict(unittest.TestCase):

	def test_jsdict(self):
		d = jsdict()

		d.foo = 'iamblichus'
		self.assertEqual(d['foo'], 'iamblichus')
		self.assertEqual(d.foo, 'iamblichus')


# Path: halibot/jsdict.py
# class jsdict(dict):
# 	def __getattr__(self, name):
# 		return self[name]
# 
# 	def __setattr__(self, name, value):
# 		self[name] = value


# Path: tests/test_jsdict.py
import unittest
from halibot.jsdict import jsdict



class TestJsdict(unittest.TestCase):

	def test_jsdict(self):
		d = jsdict()

		d.foo = 'iamblichus'
		self.assertEqual(d['foo'], 'iamblichus')
		self.assertEqual(d.foo, 'iamblichus')


		d['bar'] = 'porphyry'