def test_nonlinear_factor_graph(self):
    'Checks that printing NonlinearFactorGraph uses the GTDKeyFormatter'
    fg = gtd.NonlinearFactorGraph()
    fg.push_back(gtd.MinTorqueFactor(gtd.TorqueKey(0, 0).key(), gtsam.noiseModel.Unit.Create(1)))
    self.assertTrue(('T(0)0' in fg.__repr__()))
Checks that printing NonlinearFactorGraph uses the GTDKeyFormatter
def test_nonlinear_factor_graph(self):
    
    fg = gtd.NonlinearFactorGraph()
    fg.push_back(gtd.MinTorqueFactor(gtd.TorqueKey(0, 0).key(), gtsam.noiseModel.Unit.Create(1)))
    self.assertTrue(('T(0)0' in fg.__repr__()))