def test_ns_variable(self):
    self.set_view_content('(ns foo.bar)')
    self.set_selections((0, 0))
    self.view.run_command('tutkain_evaluate', {'code': "(in-ns '${ns})"})
    self.assertEquals(input("(in-ns 'foo.bar)\n"), self.get_print())
    self.eval_context(ns=edn.Symbol('foo.bar'))
    self.assertEquals("(in-ns 'foo.bar)\n", self.server.recv())
    self.server.send('#object[clojure.lang.Namespace 0x4a1c0752 "foo.bar"]')
    self.assertEquals(ret('#object[clojure.lang.Namespace 0x4a1c0752 "foo.bar"]\n'), self.get_print())
def test_ns_variable(self):
    self.set_view_content('(ns foo.bar)')
    self.set_selections((0, 0))
    self.view.run_command('tutkain_evaluate', {'code': "(in-ns '${ns})"})
    self.assertEquals(input("(in-ns 'foo.bar)\n"), self.get_print())
    self.eval_context(ns=edn.Symbol('foo.bar'))
    self.assertEquals("(in-ns 'foo.bar)\n", self.server.recv())
    self.server.send('#object[clojure.lang.Namespace 0x4a1c0752 "foo.bar"]')
    self.assertEquals(ret('#object[clojure.lang.Namespace 0x4a1c0752 "foo.bar"]\n'), self.get_print())